<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>办公室：导游领队证件信息</title>
	<jsp:include page="/com/common/_js.jsp"></jsp:include>
	<script type="text/javascript">
	$(function(){
		
	});
	</script>
</head>
<body>
	<div id="web">
		<div id="head"></div>
		<div id="body">
			<div class="container-fluid">
			    <div class="row-fluid">
				    <div class="span2">
				    <jsp:include page="_left.jsp"></jsp:include>
				    </div>
				    <div class="span10">
				    <div class="left-bar"><i class="icon-folder-close icon-white"></i> 证件管理</div>
				 		<s:if test="certificateList==null">
					<script type="text/javascript">
					$(function(){$("#form-guidefm").show();});
					</script>
					没有证件
				</s:if>
				<s:else>
					<table>
						<thead>
							<tr>
								<th width="120px">证件ID</th>
								<th width="120px">证件名</th>
								<th width="120px">英文名</th>
								<th width="120px">证件号码</th>
								<th width="120px">颁发日期</th>
								<th width="120px">有效日期</th>
								<th width="120px">签注次数</th>
								<th width="120px">签注有效期</th>
							</tr>
						</thead>
						<s:iterator value="certificateList">
							<tr>
								<td><s:property value="ctfId" />
								</td>
								<td>
									<s:a action="certificateAction" method="queryCertificate" namespace="/officer">
										<s:param name="ctfId" value="ctfId"></s:param>
										<s:property value="cardName" />
									</s:a>
								</td>
								<td><s:property value="enName" />
								</td>
								<td><s:property value="ctfNum" />
								</td>
								<td><s:date name="issueDate" format="yyyy-MM-dd" />
								</td>
								<td><s:date name="ctfDate" format="yyyy-MM-dd" />
								</td>
								<td><s:property value="endorseNum"/>
								</td>
								<td><s:date name="endorseDate" format="yyyy-MM-dd" />
								</td>
							</tr>
						</s:iterator>
					</table>
				</s:else>
				<s:url id="insertGuidecft" action="cardAction!insertCertificate" namespace="/officer">
					<s:param name="guideId" value="guideId"></s:param>
				</s:url>
				<s:a href="%{insertGuidecft}"  cssClass="a-button">添加 证件信息</s:a>
				<s:a action="certificateAction" method="checkCtfRemind" namespace="/officer">
					<s:param name="guideId" value="guideId"></s:param>
					检查证件
				</s:a>
				    </div>
			    </div>
			</div>
		</div>
		<div id="foot"></div>
	</div>
</body>
</html>